package com.toocms.jinjuhang.ui.index

import android.view.View
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.databinding.FgtIndexBinding
import com.toocms.jinjuhang.ui.base.BaseFgt

class IndexFgt : BaseFgt<FgtIndexBinding, IndexModel>() {
    override fun onFragmentCreated() {
        topBar.visibility = View.GONE
//        startFragment(AdvertListFgt::class.java)
    }

    override fun getLayoutResId() = R.layout.fgt_index

    override fun getVariableId() = BR.indexModel

    override fun viewObserver() {
        viewModel.stopRefreshOrLoadSingleLiveEvent.observe(this) {
            binding.refreshSrl.finishRefresh()
            binding.refreshSrl.finishLoadMore()
        }
    }
}